Kedu = cc.Sprite.extend({
	ctor:function(p){
		this._super("#air/air_side_bg.png");
		this.setPosition(gg.c_p);
		p.addChild(this, 500, TAG_AIR_SIDE_NODE);
		this.init();
	},
	init:function(){
		this.setCascadeOpacityEnabled(true);
		this.setOpacity(0);
		var kedu = new cc.Sprite("#kedu.png");
		kedu.setPosition(this.width * 0.5, this.height * 0.7);
		this.addChild(kedu);
		var seq=cc.sequence(cc.fadeIn(0.5));
		this.runAction(seq);

		var youma = new cc.Sprite("#youma.png");
		youma.setPosition(this.width * 0.5-9, this.height * 0.7);
		this.addChild(youma);
		
		var close = new Button(this, 501, TAG_KEDU_CLOSE, "#button/close.png",this.close);
		close.setPosition(cc.p(this.width-33,this.height-33));
		close.setScale(2);
		
		var text1=new cc.LabelTTF("初始苯甲酸：5.0g\n提纯后的苯甲酸：\n苯甲酸产率：","Arial","30");
		text1.setColor(cc.color(0,0,0));
		text1.setPosition(cc.p(this.width * 0.38, this.height * 0.4));
		this.addChild(text1);
		
		var text2=new cc.LabelTTF("2.3g","Arial","30");
		text2.setColor(cc.color(0,0,0));
		text2.setPosition(cc.p(this.width * 0.57, this.height * 0.4));
		this.addChild(text2,100);
		text2.setOpacity(0);
		var seq2=cc.sequence(cc.delayTime(0.8),cc.fadeIn(1))
		text2.runAction(seq2);
		
		var text3=new cc.LabelTTF("2.3g/5.0g×100%=46%","Arial","30");
		text3.setColor(cc.color(0,0,0));
		text3.setPosition(cc.p(this.width * 0.65, this.height * 0.3+10));
		this.addChild(text3,100);
		text3.setOpacity(0);
		var seq3=cc.sequence(cc.delayTime(1.8),cc.fadeIn(1),cc.callFunc(function() {
			gg.flow.next();
		}, this));
		text3.runAction(seq3);
	},
	close:function(p){
		var seq = cc.sequence(cc.fadeTo(0.5,0),cc.callFunc(function(){			
			gg.flow.next();
			this.removeFromParent(true);
		},this));
		this.runAction(seq);
	}
});